package com.paifori.cloud.security.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseResult {
    
    private int code;
    
    private Boolean status;
    
    private Object data;
    
    private String message;
    
    public static BaseResult success(Object data, String message) {
	return new BaseResult(200, true, data, message);
    }
    
    public static BaseResult fail(Object data, String message) {
	return new BaseResult(400, false, data, message);
    }

}
